// console.log(window.location.pathname)
// function changeRoute() {
//   if (window.location.pathname.split('/')[1] == 'userAdminLogin') {

//   }
// }
import { LAYOUT } from '@/store/keys'

export const asyncRoutesUser = [
  {
    path: '/children/home',
    component: LAYOUT,
    name: '首页',
    meta: {
      title: '首页',
      iconPrefix: 'iconfont',
    },
    children: [
      {
        path: '/children/home/monitor',
        name: '系统首页',
        component: (): any => import('@/views/children/home/monitor.vue'),
        meta: {
          title: '系统首页',
          affix: true,
        },
      },
      {
        path: '/children/home/notice',
        name: '系统公告',
        component: (): any => import('@/views/children/home/notice.vue'),
        meta: {
          title: '系统公告',
          // affix: true,
        },
      },
      {
        path: 'work-place',
        name: 'WorkPlace',
        component: (): any => import('@/views/index/work-place.vue'),
        meta: {
          title: '工作台',
        },
      },
    ],
  },
]
